/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.security.service;

import org.vacoor.nothing.security.entity.Job;
import org.vacoor.nothing.web.service.CrudService;

/**
 * @author vacoor
 */
public interface JobManager extends CrudService<Job, Long> {

    @Override
    void save(Job job) throws IllegalJobException;

    @Override
    void update(Job job) throws IllegalJobException;

    @Override
    void delete(Long id) throws IllegalJobException;

    void trigger(Long id) throws IllegalJobException;

    void pause(Long id) throws IllegalJobException;

    void resume(Long id) throws IllegalJobException;

}
